* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
body {
  max-width: 540px;
  min-width: 320px;
  height: 100%;
  margin: 0 auto;
  background-color: #f5f5f5;
}
/* search_box */
.search_box {
  position: relative;
  height: 45px;
  padding: 7px 50px 10px 8px;
  background-color: #f6f6f6;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.search {
  height: 26px;
  line-height: 26px;
  padding-left: 24px;
  color: #666;
  font-size: 12px;
  border: 1px solid #999;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.search::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 17px;
  width: 13px;
  height: 13px;
  background: url(../images/ico.png) no-repeat -60px -280px;
  background-size: 104px auto;
}
.myctrip {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 43px;
  color: #2eaae0;
  font-size: 13px;
  text-align: center;
  /* 字间距 */
  letter-spacing: 3px;
}
.myctrip::before {
  content: '';
  display: block;
  width: 23px;
  height: 23px;
  margin: 2px auto 0;
  background: url(../images/ico.png) no-repeat -59px -194px;
  background-size: 104px auto;
}
/* header */
header img {
  width: 100%;
}
/* local_nav */
.local_nav {
  display: flex;
  height: 64px;
  margin: 5px;
  background-color: #fff;
  border-radius: 6px;
}
.local_nav li {
  flex: 1;
}
.local_nav li a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 6px;
  font-size: 13px;
  color: #222;
  flex-direction: column;
  align-items: center;
}
.local_nav li a span:nth-child(1),
.local_nav li a span:nth-child(1),
.local_nav li a span:nth-child(1),
.local_nav li a span:nth-child(1),
.local_nav li a span:nth-child(1) {
  width: 32px;
  height: 32px;
  background: url(../images/ico1.png) no-repeat;
  background-size: 32px auto;
}
.local_nav li:nth-child(2) a span:nth-child(1) {
  background-position: 0 -32px;
}
.local_nav li:nth-child(3) a span:nth-child(1) {
  background-position: 0 -64px;
}
.local_nav li:nth-child(4) a span:nth-child(1) {
  background-position: 0 -96px;
}
.local_nav li:nth-child(5) a span:nth-child(1) {
  background-position: 0 -128px;
}
/* nav */
nav {
  overflow: hidden;
  margin: 0 5px;
  border-radius: 6px;
}
.grid_nav_common {
  display: flex;
  height: 88px;
}
.grid_nav_common:nth-child(1) {
  background-image: linear-gradient(to right, #fa5956, #fa9b4d);
}
.grid_nav_common:nth-child(2) {
  margin: 3px 0;
  background-image: linear-gradient(to right, #4b8fed, #53bced);
}
.grid_nav_common:nth-child(3) {
  background-image: linear-gradient(to right, #34c2aa, #6cd558);
}
.grid_nav_items {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.grid_nav_items a {
  line-height: 44px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);
  flex: 1;
}
.hotel {
  background: url(../images/hotel.png) no-repeat center bottom;
  background-size: 121px auto;
}
.ticket {
  background: url(../images/flight.png) no-repeat center bottom;
  background-size: 121px auto;
}
.travel {
  background: url(../images/travel.png) no-repeat center bottom;
  background-size: 121px auto;
}
.grid_nav_items:nth-child(2) {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
.grid_nav_items:nth-child(n+2) a:nth-child(1) {
  border-bottom: 1px solid #fff;
}
/* subnav_entry */
.subnav_entry {
  display: flex;
  height: 116px;
  margin: 5px;
  background-color: #fff;
  border-radius: 6px;
  flex-wrap: wrap;
}
.subnav_entry li {
  display: flex;
  /* width: 20%; */
  flex: 0 0 20%;
  font-size: 12px;
  align-items: center;
  flex-direction: column;
}
.subnav_entry li span:nth-child(1) {
  width: 22px;
  height: 24px;
  margin-top: 10px;
  background: url(../images/ico2.png) no-repeat;
  background-size: 24px auto;
}
.subnav_entry li:nth-child(2) span:nth-child(1) {
  width: 18px;
  background-position: 0 -24px;
} 
.subnav_entry li:nth-child(3) span:nth-child(1) {
  width: 19px;
  background-position: 0 -53px;
} 
.subnav_entry li:nth-child(4) span:nth-child(1) {
  background-position: 0 -275px;
} 
.subnav_entry li:nth-child(5) span:nth-child(1) {
  background-position: 0 -84px;
} 
.subnav_entry li:nth-child(6) span:nth-child(1) {
  width: 15px;
  background-position: 0 -138px;
} 
.subnav_entry li:nth-child(7) span:nth-child(1) {
  background-position: 0 -169px;
} 
.subnav_entry li:nth-child(8) span:nth-child(1) {
  background-position: 0 -113px;
} 
.subnav_entry li:nth-child(9) span:nth-child(1) {
  background-position: 0 -198px;
} 
.subnav_entry li:nth-child(10) span:nth-child(1) {
  width: 18px;
  background-position: 0 -248px;
}
/* sale */
.sale,
.popularevents {
  height: 263px;
  margin-top: 8px;
  background-color: #fff;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}
.sale_head,
.popularevents_head {
  display: flex;
  height: 44px;
  justify-content: space-between;
}
.sale_head span,
.popularevents_head span {
  width: 56px;
  height: 15px;
  margin: 15px 0 0 8px;
  background: url(../images/ico3.png) no-repeat;
  background-size: 79px auto;
}
.sale_head a,
.popularevents_head a {
  position: relative;
  height: 20px;
  margin: 11px 8px 0 0;
  padding: 0 20px 0 10px;
  line-height: 20px;
  color: #fff;
  font-size: 12px;
  background-image: linear-gradient(to right, #ff5166, #ff6dc8);
  border-radius: 10px;
}
.sale_head a::after,
.popularevents_head a::after {
  content: '';
  position: absolute;
  top: 6.5px;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(-45deg);
}
.sale_body {
  display: flex;
}
.sale_hot {
  position: relative;
  height: 205px;
  margin-left: 8px;
  color: #222;
  background-color: #f9f9f9;
  flex: 1;
}
.sale_hot img {
  position: absolute;
  width: 100%;
  height: 120px;
}
.sale_hot p {
  position: absolute;
  top: 125px;
  display: -webkit-box;
  overflow: hidden;
  line-height: 20px;
  padding: 0 5px;
  font-size: 12px;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sale_hot i,
.sale_hot em {
  position: absolute;
  top: 174px;
  font-style: normal;
  font-size: 10px;
}
.sale_hot i {
  left: 5px;
  color: #fd3a51;
}
.sale_hot span {
  position: absolute;
  top: 170px;
  left: 15px;
  color: #fd3a51;
  font-size: 14px;
}
.sale_hot em {
  left: 65px;
  padding: 0 5px;
  color: #fff;
  background-color: #fd3a51;
  border-radius: 10px;
}
.sale_items {
  display: flex;
  margin: 0 8px 0 4px;
  flex: 1;
  flex-direction: column;
}
.sale_items h4 {
  font-size: 14px;
}
.sale_items p {
  font-size: 12px;
}
.sale_items p i {
  font-style: normal;
}
.sale_bargain {
  position: relative;
  height: 88px;
  padding: 12px 0 0 6px;
  color: #222;
  background-color: #f9f9f9;
}
.sale_bargain h4 {
  color: #fd3a51;
}
.sale_bargain::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 4px;
  width: 53px;
  height: 68px;
  background: url(../images/bargain.png) no-repeat;
  background-size: 53px auto;
}
.sale_recom {
  margin-top: 4px;
  display: flex;
  height: 112px;
}
.sale_featured {
  position: relative;
  line-height: 20px;
  padding-top: 10px;
  color: #222;
  text-align: center;
  background-color: #f9f9f9;
  flex: 1;
}
.sale_featured h4,
.sale_featured p i {
  color: #6aabfe;
}
.sale_fun {
  position: relative;
  line-height: 20px;
  margin-left: 4px;
  padding-top: 10px;
  color: #222;
  text-align: center;
  background-color: #f9f9f9;
  flex: 1;
}
.sale_fun h4,
.sale_fun p i {
  color: #53ca72;
}
.sale_featured::after,
.sale_fun::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 47px;
  width: 48px;
  height: 34px;
}
.sale_featured::after {
  background: url(../images/featured.png) no-repeat;
  background-size: 48px auto;
}
.sale_fun::after {
  background: url(../images/fun.png) no-repeat;
  background-size: 48px auto;
}
/* popularevents */
.popularevents {
  height: 467px;
}
.popularevents_head span {
  width: 72px;
  background-position: 0 -19px;
}
.popularevents_body {
  overflow: hidden;
  display: flex;
}
.popularevents_left,
.popularevents_right {
  height: 421px;
  flex: 1;
  border-top: 1px solid #f2f2f2;
}
.popularevents_left {
  border-right: 1px solid #f2f2f2;
}
.popularevents_left a,
.popularevents_right a {
  display: block;
  width: 100%;
}
.popularevents_left a:nth-child(n+2),
.popularevents_right a:nth-child(n+2) {
  border-top: 1px solid #f2f2f2;
}
.popularevents_body img {
  width: 100%;
}
/* predownload */
.predownload {
  display: flex;
  height: 52px;
  margin-top: 8px;
  border-top: 1px solid #dbdbdb;
  background-color: #fff;
  border-bottom: 1px solid #dbdbdb;
  justify-content: space-around;
}
.predownload a {
  display: flex;
  margin-top: 8px;
  color: #222;
  font-size: 12px;
  flex-direction: column;
  align-items: center;
}
.preordain span:nth-child(1), 
.download span:nth-child(1), 
.mine span:nth-child(1) {
  background: url(../images/ico.png) no-repeat;
  background-size: 104px auto;
}
.preordain span:nth-child(1) {
  width: 16px;
  height: 17px;
  background-position: -60px -153px;
}
.download span:nth-child(1) {
  width: 16px;
  height: 17px;
  background-position: -60px -173px;
}
.mine span:nth-child(1) {
  width: 18px;
  height: 18px;
  background-position: -60px -310px;
}
/* footer */
footer {
  line-height: 20px;
  color: #999;
  font-size: 10px;
  text-align: center;
}
.foot_top a {
  position: relative;
  color: #666;
  padding: 10px;
}
.foot_top span:nth-of-type(1) {
  margin-right: 10px;
}
.foot_top span:nth-of-type(2) {
  margin-left: 10px;
}
.foot_top a:nth-of-type(2)::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -2px;
  width: 11px;
  height: 11px;
  background: url(../images/ico4.png) no-repeat 0 -160px;
  background-size: 30px auto;
}
.foot_top a:nth-of-type(2)::after {
  content: '';
  position: absolute;
  top: 13px;
  right: 0;
  width: 5px;
  height: 5px;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  transform: rotate(45deg);
}